package com.atwei.mango.business.school.controller;

import com.atwei.mango.business.school.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname SchoolController
 * @Date 2022/5/24 19:10
 * @Author liuwei
 */
@RestController
public class SchoolController {

    @Autowired
    SchoolService schoolService;

    @PreAuthorize("hasPermission('/product/list','product:list')")
    @GetMapping("schoolTest")
    public void test(){
        schoolService.test();
    }
}
